#!/usr/bin/env bash

#TODO --log-opt max-size=100m --log-opt max-file=2 -m 700M

docker run -d --restart=always --name bshbp-es-master-1 \
 -e ES_JAVA_OPTS="-Xms512m -Xmx512m" -p 9200:9200 -p 9300:9300 \
 -v /root/elk-env-deploy/elasticsearch-data/config/elasticsearch-node-1.yml:/usr/share/elasticsearch/config/elasticsearch.yml:rw \
 -v /root/elk-env-deploy/elasticsearch-data/data:/usr/share/elasticsearch/data \
 -v /root/elk-env-deploy/elasticsearch-data/runlog:/usr/share/elasticsearch/logs \
 docker.elastic.co/elasticsearch/elasticsearch:7.10.1